﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.dotnetage.com/XML/Schema/installer/config/configurationNode"
            xmlns="http://www.dotnetage.com/XML/Schema/installer/config/configurationNode"
           >
  <xs:element name="config">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="node">
          <xs:complexType>
            <xs:attribute name="path" type="xs:string" use="required" />
            <xs:attribute name="action" type="configNodeActions" use="required" />
            <xs:attribute name="key" type="xs:string" use="required" />
            <xs:attribute name="value" type="xs:string" use="required" />
            <xs:attribute name="name" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="file" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="configNodeActions">
    <xs:restriction base="xs:string">
      <xs:enumeration value="New" />
      <xs:enumeration value="Update" />
      <xs:enumeration value="Remove" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>